package com.homework8_1;

public class Animal {
    private String name;
    private String color;
    private String kind;

    public Animal(String name, String color, String kind) {
        this.name = name;
        this.color = color;
        this.kind = kind;
    }

    public Animal() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }
    public void eat(){
        System.out.println("吃");
    }
    public void shout(){
        System.out.println("叫");
    }
}
